package com.wonders.hisdoctor.station.project.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wonders.hisdoctor.station.project.base.domain.OutpPresc;
import com.wonders.hisdoctor.station.project.base.domain.OutpPrescT;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>门诊医嘱处方明细临时表：处方医嘱队列OUTP_PRESC一个复制。 dao </p>
 * <p>db_table: OUTP_PRESC_T</p>
 *
 * @author tong_aj
 * @date 2021/01/19
 */
@Mapper
@Repository
public interface OutpPrescTMapper extends BaseMapper<OutpPrescT> {

    /**
     * 批量新增
     *
     * @param outpPrescTS 门诊医嘱处方明细临时表
     * @return int
     */
    int batchInsert(List<OutpPrescT> outpPrescTS);

    /**
     * 批量更新
     *
     * @param updateTempList 门诊医嘱处方明细临时表
     * @return int
     */
    int batchUpdate(List<OutpPrescT> updateTempList);

    /**
     * 批量删除
     *
     * @param outpPrescs
     * @return
     */
    int deleteBatch(List<OutpPresc> outpPrescs);

}
